.class public Lcom/nemustech/regina/WorkspaceBrowser;
.super Lcom/nemustech/regina/WorkspaceBrowserHolder;
.source "WorkspaceBrowser.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nemustech/regina/WorkspaceBrowser$WorkspaceNamePanelJit;
    }
.end annotation


# static fields
.field private static final ANGLE_RG_FLICK:F = 0.0f

.field private static final ANGLE_RG_SWITCHER:F = 25.0f

.field public static final ANIMATION_TIME_REAL_WORKSPACE_GREETING:I = 0xc8

.field public static final ANIMATION_TIME_WORKSPACE_FLICK:I = 0x96

.field public static final ANIMATION_TIME_WORKSPACE_TO_BROWSER:I = 0xfa

.field public static final DEBUG_WORKSPACE_BROWSER:Z = false

.field public static final POSITION_BEYOND_FLICKING_ZONE:I = 0x2

.field public static final POSITION_BROWSING_ZONE:I = 0x3

.field public static final POSITION_FLICKING_ZONE:I = 0x1

.field public static final POSITION_ORIGIN:I = 0x0

.field private static final POSITION_RG_FLICK:F = -0.5f

.field private static final POSITION_RG_SWITCHER_SWITCHER:F = -3.0f

.field static final PSEUDO_ZERO:F = -0.1f

.field public static final TAG:Ljava/lang/String; = "WorkspaceBrowser"

.field private static mAddReflectingFloor:Z


# instance fields
.field private mCurHeadItemIndex:I

.field private mElementLocator:Lcom/nemustech/regina/ElementLocator;

.field private mFlickDirection:I

.field private mFlickEndIndex:I

.field private mFlickEndListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

.field private mFlickZoneFallbackListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

.field private mFlickZoneReturnListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

.field private mFlicking:Z

.field private mHandler:Landroid/os/Handler;

.field private mIdle:Z

.field private mNamePanel3DHeight:F

.field private mNamePanel3DWidth:F

.field mNamePanelJit:Lcom/nemustech/regina/WorkspaceBrowser$WorkspaceNamePanelJit;

.field mNamePanelMap:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Lcom/nemustech/tiffany/world/TFPanel;",
            ">;"
        }
    .end annotation
.end field

.field private mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

.field private mReturnToWorkspaceListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

.field private mWorkspaceHeight:F

.field private mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

.field private mWorkspaceWidth:F

.field private mZone:I


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 118
    const/high16 v0, 0x4060

    const/high16 v1, 0x40c0

    invoke-direct {p0, v0, v1}, Lcom/nemustech/regina/WorkspaceBrowserHolder;-><init>(FF)V

    .line 85
    new-instance v0, Lcom/nemustech/regina/WorkspaceBrowser$WorkspaceNamePanelJit;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/WorkspaceBrowser$WorkspaceNamePanelJit;-><init>(Lcom/nemustech/regina/WorkspaceBrowser;)V

    iput-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanelJit:Lcom/nemustech/regina/WorkspaceBrowser$WorkspaceNamePanelJit;

    .line 321
    iput-boolean v2, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlicking:Z

    .line 452
    new-instance v0, Lcom/nemustech/regina/WorkspaceBrowser$3;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/WorkspaceBrowser$3;-><init>(Lcom/nemustech/regina/WorkspaceBrowser;)V

    iput-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickZoneFallbackListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    .line 461
    new-instance v0, Lcom/nemustech/regina/WorkspaceBrowser$4;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/WorkspaceBrowser$4;-><init>(Lcom/nemustech/regina/WorkspaceBrowser;)V

    iput-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickZoneReturnListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    .line 481
    new-instance v0, Lcom/nemustech/regina/WorkspaceBrowser$5;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/WorkspaceBrowser$5;-><init>(Lcom/nemustech/regina/WorkspaceBrowser;)V

    iput-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReturnToWorkspaceListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    .line 544
    new-instance v0, Lcom/nemustech/regina/WorkspaceBrowser$6;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/WorkspaceBrowser$6;-><init>(Lcom/nemustech/regina/WorkspaceBrowser;)V

    iput-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

    .line 120
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mHandler:Landroid/os/Handler;

    .line 121
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setAutoRepositionMode(Z)V

    .line 122
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v0

    const/high16 v1, 0x3f80

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setInertia(F)V

    .line 123
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mIdle:Z

    .line 125
    const/4 v0, -0x1

    iput v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mCurHeadItemIndex:I

    .line 126
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanelMap:Ljava/util/HashMap;

    .line 127
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/WorkspaceBrowser;II)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"

    .prologue
    .line 25
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/WorkspaceBrowser;->drawNameBitmap(II)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$100(Lcom/nemustech/regina/WorkspaceBrowser;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mCurHeadItemIndex:I

    return v0
.end method

.method static synthetic access$1000(Lcom/nemustech/regina/WorkspaceBrowser;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    return v0
.end method

.method static synthetic access$102(Lcom/nemustech/regina/WorkspaceBrowser;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 25
    iput p1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mCurHeadItemIndex:I

    return p1
.end method

.method static synthetic access$1100(Lcom/nemustech/regina/WorkspaceBrowser;)Landroid/os/Handler;
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/WorkspaceBrowser;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mZone:I

    return v0
.end method

.method static synthetic access$202(Lcom/nemustech/regina/WorkspaceBrowser;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 25
    iput p1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mZone:I

    return p1
.end method

.method static synthetic access$300(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/ReginaLauncher;
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    return-object v0
.end method

.method static synthetic access$402(Lcom/nemustech/regina/WorkspaceBrowser;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 25
    iput-boolean p1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlicking:Z

    return p1
.end method

.method static synthetic access$500(Lcom/nemustech/regina/WorkspaceBrowser;ZZI)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"
    .parameter "x3"

    .prologue
    .line 25
    invoke-direct {p0, p1, p2, p3}, Lcom/nemustech/regina/WorkspaceBrowser;->setBackgroundQuality(ZZI)V

    return-void
.end method

.method static synthetic access$600(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/ElementLocator;
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    return-object v0
.end method

.method static synthetic access$700(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/RGWorkspaceHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

    return-object v0
.end method

.method static synthetic access$802(Lcom/nemustech/regina/WorkspaceBrowser;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 25
    iput-boolean p1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mIdle:Z

    return p1
.end method

.method static synthetic access$900(Lcom/nemustech/regina/WorkspaceBrowser;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 25
    iget v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickDirection:I

    return v0
.end method

.method static synthetic access$902(Lcom/nemustech/regina/WorkspaceBrowser;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 25
    iput p1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickDirection:I

    return p1
.end method

.method private animateToBrowsingPosition(J)V
    .locals 8
    .parameter "duration"

    .prologue
    const/4 v7, 0x2

    const/4 v1, 0x0

    .line 272
    const/high16 v3, -0x3fc0

    move-object v0, p0

    move v2, v1

    move-wide v4, p1

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/regina/WorkspaceBrowser;->move(FFFJ)V

    .line 273
    const/high16 v2, 0x41c8

    move-object v0, p0

    move-wide v3, p1

    move v5, v7

    move v6, v7

    invoke-virtual/range {v0 .. v6}, Lcom/nemustech/regina/WorkspaceBrowser;->rotate(FFJII)V

    .line 274
    return-void
.end method

.method private animateToFlickingPosition(J)V
    .locals 8
    .parameter "duration"

    .prologue
    const/4 v7, 0x2

    const/4 v1, 0x0

    .line 267
    const/high16 v3, -0x4100

    move-object v0, p0

    move v2, v1

    move-wide v4, p1

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/regina/WorkspaceBrowser;->move(FFFJ)V

    move-object v0, p0

    move v2, v1

    move-wide v3, p1

    move v5, v7

    move v6, v7

    .line 268
    invoke-virtual/range {v0 .. v6}, Lcom/nemustech/regina/WorkspaceBrowser;->rotate(FFJII)V

    .line 269
    return-void
.end method

.method private animateToOrigin(J)V
    .locals 8
    .parameter "duration"

    .prologue
    const/4 v7, 0x2

    const/4 v1, 0x0

    .line 262
    const v3, -0x42333333

    move-object v0, p0

    move v2, v1

    move-wide v4, p1

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/regina/WorkspaceBrowser;->move(FFFJ)V

    move-object v0, p0

    move v2, v1

    move-wide v3, p1

    move v5, v7

    move v6, v7

    .line 263
    invoke-virtual/range {v0 .. v6}, Lcom/nemustech/regina/WorkspaceBrowser;->rotate(FFJII)V

    .line 264
    return-void
.end method

.method private drawNameBitmap(II)Landroid/graphics/Bitmap;
    .locals 9
    .parameter "wsUid"
    .parameter "idx"

    .prologue
    .line 88
    iget-object v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget v8, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanel3DWidth:F

    invoke-static {v7, v8}, Lcom/nemustech/regina/RUtils;->convertTo2DSize(Landroid/content/Context;F)I

    move-result v1

    .line 89
    .local v1, bitmapWidth:I
    iget-object v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget v8, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanel3DHeight:F

    invoke-static {v7, v8}, Lcom/nemustech/regina/RUtils;->convertTo2DSize(Landroid/content/Context;F)I

    move-result v0

    .line 90
    .local v0, bitmapHeight:I
    sget-object v7, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v1, v0, v7}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v5

    .line 91
    .local v5, target:Landroid/graphics/Bitmap;
    new-instance v2, Landroid/graphics/Canvas;

    invoke-direct {v2, v5}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 95
    .local v2, canvas:Landroid/graphics/Canvas;
    iget-object v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v7

    iget-object v8, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v8}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v8

    invoke-virtual {v7, p1, v8}, Lcom/nemustech/regina/ReginaPreference;->getWorkspaceNameByUID(IZ)Ljava/lang/String;

    move-result-object v6

    .line 100
    .local v6, wsName:Ljava/lang/String;
    if-eqz v6, :cond_0

    .line 101
    new-instance v4, Landroid/graphics/Paint;

    invoke-direct {v4}, Landroid/graphics/Paint;-><init>()V

    .line 102
    .local v4, paint:Landroid/graphics/Paint;
    const/4 v7, -0x1

    invoke-virtual {v4, v7}, Landroid/graphics/Paint;->setColor(I)V

    .line 103
    sget-object v7, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v4, v7}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 104
    const/4 v7, 0x1

    invoke-virtual {v4, v7}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 105
    sget-object v7, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    invoke-virtual {v4, v7}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 106
    sget-object v7, Landroid/graphics/Typeface;->SANS_SERIF:Landroid/graphics/Typeface;

    invoke-virtual {v4, v7}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    .line 107
    iget-object v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v7}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v7

    const v8, 0x7f0600b1

    invoke-virtual {v7, v8}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v3

    .line 108
    .local v3, fontSizeDim:I
    int-to-float v7, v3

    invoke-virtual {v4, v7}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 110
    iget-object v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget v8, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanel3DWidth:F

    invoke-static {v7, v8}, Lcom/nemustech/regina/RUtils;->convertTo2DSize(Landroid/content/Context;F)I

    move-result v7

    invoke-static {v6, v4, v7}, Lcom/nemustech/regina/RUtils;->getEllipsisString(Ljava/lang/String;Landroid/graphics/Paint;I)Ljava/lang/String;

    move-result-object v6

    .line 111
    div-int/lit8 v7, v1, 0x2

    int-to-float v7, v7

    mul-int/lit8 v8, v0, 0x2

    div-int/lit8 v8, v8, 0x3

    int-to-float v8, v8

    invoke-virtual {v2, v6, v7, v8, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 114
    .end local v3           #fontSizeDim:I
    .end local v4           #paint:Landroid/graphics/Paint;
    :cond_0
    return-object v5
.end method

.method private setBackgroundQuality(ZZI)V
    .locals 9
    .parameter "isHigh"
    .parameter "isTriple"
    .parameter "index"

    .prologue
    const/4 v8, 0x3

    const/4 v7, 0x0

    const/4 v6, 0x1

    .line 430
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getSlotCount()I

    move-result v2

    .line 431
    .local v2, slotCount:I
    const/4 v4, 0x0

    .line 432
    .local v4, troica:[I
    move v0, p1

    .line 434
    .local v0, highQuality:Z
    if-eqz p2, :cond_0

    .line 435
    new-array v4, v8, [I

    .line 436
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    if-ge v1, v8, :cond_0

    .line 437
    add-int v5, p3, v2

    sub-int/2addr v5, v1

    sub-int/2addr v5, v6

    rem-int/2addr v5, v2

    aput v5, v4, v1

    .line 436
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 440
    .end local v1           #i:I
    :cond_0
    const/4 v1, 0x0

    .restart local v1       #i:I
    :goto_1
    if-ge v1, v2, :cond_6

    .line 441
    if-eqz v4, :cond_5

    .line 442
    aget v5, v4, v7

    if-eq v1, v5, :cond_1

    aget v5, v4, v6

    if-eq v1, v5, :cond_1

    const/4 v5, 0x2

    aget v5, v4, v5

    if-ne v1, v5, :cond_3

    :cond_1
    move v0, p1

    .line 447
    :cond_2
    :goto_2
    invoke-virtual {p0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v3

    check-cast v3, Lcom/nemustech/tiffany/world/TFHolder;

    .line 448
    .local v3, thumbHolder:Lcom/nemustech/tiffany/world/TFHolder;
    invoke-direct {p0, v3, v0}, Lcom/nemustech/regina/WorkspaceBrowser;->setThumbQuality(Lcom/nemustech/tiffany/world/TFHolder;Z)V

    .line 440
    .end local v3           #thumbHolder:Lcom/nemustech/tiffany/world/TFHolder;
    :goto_3
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 442
    :cond_3
    if-nez p1, :cond_4

    move v0, v6

    goto :goto_2

    :cond_4
    move v0, v7

    goto :goto_2

    .line 445
    :cond_5
    const/4 v5, -0x1

    if-eq p3, v5, :cond_2

    if-eq v1, p3, :cond_2

    goto :goto_3

    .line 450
    :cond_6
    return-void
.end method

.method private setThumbQuality(Lcom/nemustech/tiffany/world/TFHolder;Z)V
    .locals 4
    .parameter "thumbHolder"
    .parameter "isHigh"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 416
    invoke-virtual {p1, v2}, Lcom/nemustech/tiffany/world/TFHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v0

    .line 417
    .local v0, highQualityPanel:Lcom/nemustech/tiffany/world/TFModel;
    invoke-virtual {p1, v3}, Lcom/nemustech/tiffany/world/TFHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v1

    .line 418
    .local v1, lowQualityPanel:Lcom/nemustech/tiffany/world/TFModel;
    if-eqz p2, :cond_0

    .line 419
    invoke-virtual {v0, v3}, Lcom/nemustech/tiffany/world/TFModel;->setVisibility(Z)V

    .line 420
    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFModel;->setVisibility(Z)V

    .line 425
    :goto_0
    return-void

    .line 422
    :cond_0
    invoke-virtual {v0, v2}, Lcom/nemustech/tiffany/world/TFModel;->setVisibility(Z)V

    .line 423
    invoke-virtual {v1, v3}, Lcom/nemustech/tiffany/world/TFModel;->setVisibility(Z)V

    goto :goto_0
.end method


# virtual methods
.method public addWorkspaceThumb(ILcom/nemustech/regina/RGWorkspace;)V
    .locals 11
    .parameter "idx"
    .parameter "workspace"

    .prologue
    const/high16 v10, -0x4080

    .line 150
    :try_start_0
    const-string v7, "WorkspaceBrowser"

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "Adding workspace thumb idx:"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " uid:"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {p2}, Lcom/nemustech/regina/RGWorkspace;->getUID()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " workspace:"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 151
    new-instance v3, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    const/4 v7, 0x1

    invoke-direct {v3, v7}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>(Z)V

    .line 152
    .local v3, thumbHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "workspace thumb idx:"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " workspace:"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    iput-object v7, v3, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 154
    const/4 v7, 0x1

    invoke-virtual {v3, v7}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->prepareReservedParam(I)V

    .line 155
    const/4 v7, 0x0

    invoke-virtual {p2}, Lcom/nemustech/regina/RGWorkspace;->getUID()I

    move-result v8

    invoke-virtual {v3, v7, v8}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setReservedParam(II)V

    .line 157
    const/4 v4, 0x0

    .line 158
    .local v4, workspaceBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;
    const/4 v5, 0x0

    .line 159
    .local v5, workspaceBackgroundThumbPanel:Lcom/nemustech/tiffany/world/TFPanel;
    const/4 v6, 0x0

    .line 160
    .local v6, workspaceElementsPanel:Lcom/nemustech/tiffany/world/TFPanel;
    const/4 v2, 0x0

    .line 162
    .local v2, namePanel:Lcom/nemustech/tiffany/world/TFPanel;
    invoke-virtual {p2}, Lcom/nemustech/regina/RGWorkspace;->getBackgroundPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nemustech/tiffany/world/TFPanel;->clone()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/nemustech/tiffany/world/TFPanel;

    move-object v0, v7

    check-cast v0, Lcom/nemustech/tiffany/world/TFPanel;

    move-object v4, v0

    .line 163
    const/4 v7, 0x1

    invoke-virtual {v4, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 164
    const/high16 v7, 0x3f80

    invoke-virtual {v4, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setOpacity(F)V

    .line 166
    invoke-virtual {p2}, Lcom/nemustech/regina/RGWorkspace;->getBackgroundThumbPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nemustech/tiffany/world/TFPanel;->clone()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/nemustech/tiffany/world/TFPanel;

    move-object v0, v7

    check-cast v0, Lcom/nemustech/tiffany/world/TFPanel;

    move-object v5, v0

    .line 167
    const/4 v7, 0x0

    invoke-virtual {v5, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 168
    const/high16 v7, 0x3f80

    invoke-virtual {v5, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setOpacity(F)V

    .line 170
    invoke-virtual {p2}, Lcom/nemustech/regina/RGWorkspace;->getElementPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nemustech/tiffany/world/TFPanel;->clone()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/nemustech/tiffany/world/TFPanel;

    move-object v0, v7

    check-cast v0, Lcom/nemustech/tiffany/world/TFPanel;

    move-object v6, v0

    .line 171
    const/4 v7, 0x1

    invoke-virtual {v6, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 172
    const/high16 v7, 0x3f80

    invoke-virtual {v6, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setOpacity(F)V

    .line 174
    invoke-virtual {v4, v3}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 175
    invoke-virtual {v5, v3}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 176
    invoke-virtual {v6, v3}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 177
    iget v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceWidth:F

    cmpl-float v7, v7, v10

    if-eqz v7, :cond_0

    iget v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceHeight:F

    cmpl-float v7, v7, v10

    if-nez v7, :cond_1

    .line 178
    :cond_0
    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getWidth()F

    move-result v7

    iput v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceWidth:F

    .line 179
    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v7

    iput v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceHeight:F

    .line 183
    :cond_1
    new-instance v2, Lcom/nemustech/tiffany/world/TFPanel;

    .end local v2           #namePanel:Lcom/nemustech/tiffany/world/TFPanel;
    iget v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanel3DWidth:F

    iget v8, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanel3DHeight:F

    invoke-direct {v2, v7, v8}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 184
    .restart local v2       #namePanel:Lcom/nemustech/tiffany/world/TFPanel;
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "workspace thumb name panel uid: "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {p2}, Lcom/nemustech/regina/RGWorkspace;->getUID()I

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " workspace: "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    iput-object v7, v2, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 186
    new-instance v7, Lcom/nemustech/regina/WorkspaceBrowser$WorkspaceNamePanelJit;

    invoke-virtual {p2}, Lcom/nemustech/regina/RGWorkspace;->getUID()I

    move-result v8

    invoke-direct {v7, p0, v8, p1}, Lcom/nemustech/regina/WorkspaceBrowser$WorkspaceNamePanelJit;-><init>(Lcom/nemustech/regina/WorkspaceBrowser;II)V

    invoke-virtual {v2, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 187
    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    invoke-virtual {v2, v7, v8, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 188
    const/4 v7, 0x0

    iget v8, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceHeight:F

    const/high16 v9, 0x4000

    div-float/2addr v8, v9

    invoke-virtual {v2}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v9

    add-float/2addr v8, v9

    const/4 v9, 0x0

    invoke-virtual {v2, v7, v8, v9}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 189
    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    invoke-virtual {v2, v7, v8, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 190
    const/high16 v7, 0x3f80

    invoke-virtual {v2, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setOpacity(F)V

    .line 191
    const/4 v7, 0x0

    invoke-virtual {v2, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 192
    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 193
    iget-object v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanelMap:Ljava/util/HashMap;

    invoke-virtual {p2}, Lcom/nemustech/regina/RGWorkspace;->getUID()I

    move-result v8

    invoke-static {v8}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 195
    iget v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceWidth:F

    invoke-virtual {v3, v7}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setWidth(F)V

    .line 196
    iget v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceHeight:F

    invoke-virtual {v2}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v8

    add-float/2addr v7, v8

    invoke-virtual {v3, v7}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setHeight(F)V

    .line 197
    invoke-virtual {v3, p0, p1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;I)V

    .line 198
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->refreshHolder()V

    .line 200
    new-instance v7, Lcom/nemustech/regina/WorkspaceBrowser$1;

    invoke-direct {v7, p0}, Lcom/nemustech/regina/WorkspaceBrowser$1;-><init>(Lcom/nemustech/regina/WorkspaceBrowser;)V

    invoke-virtual {p0, v7}, Lcom/nemustech/regina/WorkspaceBrowser;->setObjectShiftListener(Lcom/nemustech/tiffany/world/TFHolder$OnObjectShiftListener;)V
    :try_end_0
    .catch Ljava/lang/CloneNotSupportedException; {:try_start_0 .. :try_end_0} :catch_0

    .line 221
    .end local v2           #namePanel:Lcom/nemustech/tiffany/world/TFPanel;
    .end local v3           #thumbHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .end local v4           #workspaceBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;
    .end local v5           #workspaceBackgroundThumbPanel:Lcom/nemustech/tiffany/world/TFPanel;
    .end local v6           #workspaceElementsPanel:Lcom/nemustech/tiffany/world/TFPanel;
    :goto_0
    return-void

    .line 217
    :catch_0
    move-exception v7

    move-object v1, v7

    .line 219
    .local v1, e:Ljava/lang/CloneNotSupportedException;
    invoke-virtual {v1}, Ljava/lang/CloneNotSupportedException;->printStackTrace()V

    goto :goto_0
.end method

.method public browsingZoneToFlickingZone()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 303
    const-string v0, "WorkspaceBrowser"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " - moving to flicking zone from "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const/4 v2, 0x2

    invoke-virtual {p0, v2}, Lcom/nemustech/regina/WorkspaceBrowser;->getLocation(I)F

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 304
    iput-boolean v3, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mIdle:Z

    .line 305
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0, v3}, Lcom/nemustech/regina/ReginaLauncher;->setRenderAffinity(Z)V

    .line 306
    const/4 v0, 0x1

    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getHeadItemIndex()I

    move-result v1

    invoke-direct {p0, v0, v3, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->setBackgroundQuality(ZZI)V

    .line 307
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickZoneReturnListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/WorkspaceBrowser;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 308
    const-wide/16 v0, 0xfa

    invoke-direct {p0, v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->animateToFlickingPosition(J)V

    .line 309
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v0

    const/16 v1, 0xfa

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->repositionObjects(I)Z

    .line 310
    return-void
.end method

.method public flickingZoneToBrowsingZone()V
    .locals 4

    .prologue
    const/4 v3, 0x2

    .line 285
    const-string v0, "WorkspaceBrowser"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " - moving to browsing zone from "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0, v3}, Lcom/nemustech/regina/WorkspaceBrowser;->getLocation(I)F

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 286
    iput v3, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mZone:I

    .line 287
    const-wide/16 v0, 0xfa

    invoke-direct {p0, v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->animateToBrowsingPosition(J)V

    .line 288
    new-instance v0, Lcom/nemustech/regina/WorkspaceBrowser$2;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/WorkspaceBrowser$2;-><init>(Lcom/nemustech/regina/WorkspaceBrowser;)V

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/WorkspaceBrowser;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 300
    return-void
.end method

.method public flickingZoneToOrigin()V
    .locals 3

    .prologue
    .line 313
    const-string v0, "WorkspaceBrowser"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " - moving to origin from flicking zone "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const/4 v2, 0x2

    invoke-virtual {p0, v2}, Lcom/nemustech/regina/WorkspaceBrowser;->getLocation(I)F

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 314
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReturnToWorkspaceListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/WorkspaceBrowser;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 316
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v0

    const/16 v1, 0x96

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->repositionObjects(I)Z

    .line 317
    const-wide/16 v0, 0x96

    invoke-direct {p0, v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->animateToOrigin(J)V

    .line 318
    return-void
.end method

.method public getFlickEndIndex()I
    .locals 1

    .prologue
    .line 330
    iget v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    return v0
.end method

.method public getFunctionalZone()I
    .locals 1

    .prologue
    .line 561
    iget v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mZone:I

    return v0
.end method

.method public getReservedFlick()I
    .locals 1

    .prologue
    .line 478
    iget v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickDirection:I

    return v0
.end method

.method public handleFlick(I)V
    .locals 9
    .parameter "direction"

    .prologue
    const/4 v8, 0x0

    const/4 v7, 0x1

    .line 334
    const-string v4, "WorkspaceBrowser"

    const-string v5, "handling flick"

    invoke-static {v4, v5, v8}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 336
    iput-boolean v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mIdle:Z

    .line 337
    iput-boolean v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlicking:Z

    .line 338
    const/4 v4, 0x0

    invoke-virtual {p0, v4}, Lcom/nemustech/regina/WorkspaceBrowser;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 339
    const-wide/16 v4, 0x96

    invoke-direct {p0, v4, v5}, Lcom/nemustech/regina/WorkspaceBrowser;->animateToFlickingPosition(J)V

    .line 340
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v0

    .line 342
    .local v0, animation:Lcom/nemustech/tiffany/world/TFHolder$MoveAnimation;
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getHeadItemIndex()I

    move-result v2

    .line 343
    .local v2, headOffset:I
    int-to-float v4, v2

    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getDeviation()F

    move-result v5

    add-float v1, v4, v5

    .line 345
    .local v1, currentPosition:F
    if-gez p1, :cond_2

    .line 346
    sub-int v4, v2, v7

    iput v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    .line 352
    :cond_0
    :goto_0
    const/4 v3, 0x0

    .line 353
    .local v3, step:F
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->isEndlessMode()Z

    move-result v4

    if-nez v4, :cond_5

    .line 354
    iget v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    if-ltz v4, :cond_3

    iget v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getSlotCount()I

    move-result v5

    if-ge v4, v5, :cond_3

    .line 355
    iget-object v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v4, v8}, Lcom/nemustech/regina/ElementLocator;->toastReachedEndWorkspace(I)V

    .line 356
    iget v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    int-to-float v4, v4

    sub-float v3, v4, v1

    .line 379
    :cond_1
    :goto_1
    iget-object v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFHolder$MoveAnimation;->setAnimationEventListener(Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    .line 380
    invoke-virtual {v0, v8}, Lcom/nemustech/tiffany/world/TFHolder$MoveAnimation;->reset(Z)V

    .line 383
    const/16 v4, 0x96

    invoke-virtual {v0, v3, v4}, Lcom/nemustech/tiffany/world/TFHolder$MoveAnimation;->setMoveStep(FI)V

    .line 384
    const-string v4, "WorkspaceBrowser"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "flick step:"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5, v8}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 385
    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFHolder$MoveAnimation;->start()V

    .line 387
    iput v7, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mZone:I

    .line 388
    return-void

    .line 348
    .end local v3           #step:F
    :cond_2
    if-lez p1, :cond_0

    .line 349
    add-int/lit8 v4, v2, 0x1

    iput v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    goto :goto_0

    .line 359
    .restart local v3       #step:F
    :cond_3
    iget v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    if-gez v4, :cond_4

    .line 360
    iget-object v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v4, v7}, Lcom/nemustech/regina/ElementLocator;->toastReachedEndWorkspace(I)V

    .line 361
    iput v8, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    goto :goto_1

    .line 363
    :cond_4
    iget v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getSlotCount()I

    move-result v5

    sub-int/2addr v5, v7

    if-le v4, v5, :cond_1

    .line 364
    iget-object v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    const/4 v5, -0x1

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ElementLocator;->toastReachedEndWorkspace(I)V

    .line 365
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getSlotCount()I

    move-result v4

    sub-int/2addr v4, v7

    iput v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    goto :goto_1

    .line 370
    :cond_5
    iget v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    int-to-float v4, v4

    sub-float v3, v4, v1

    .line 371
    iget v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    if-gez v4, :cond_6

    .line 372
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getSlotCount()I

    move-result v4

    sub-int/2addr v4, v7

    iput v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    goto :goto_1

    .line 374
    :cond_6
    iget v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getSlotCount()I

    move-result v5

    if-lt v4, v5, :cond_1

    .line 375
    iput v8, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickEndIndex:I

    goto :goto_1
.end method

.method public isFlicking()Z
    .locals 1

    .prologue
    .line 325
    iget-boolean v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlicking:Z

    return v0
.end method

.method public isIdle()Z
    .locals 1

    .prologue
    .line 565
    iget-boolean v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mIdle:Z

    return v0
.end method

.method protected locateObject(Lcom/nemustech/tiffany/world/TFObject;)V
    .locals 7
    .parameter "object"

    .prologue
    .line 231
    const/4 v4, 0x0

    invoke-virtual {p1, v4}, Lcom/nemustech/tiffany/world/TFObject;->getLocation(I)F

    move-result v2

    .line 233
    .local v2, thumbPosX:F
    iget-object v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v4

    iget-object v5, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v5}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v5

    invoke-virtual {p0, p1}, Lcom/nemustech/regina/WorkspaceBrowser;->getSlotIndex(Lcom/nemustech/tiffany/world/TFObject;)I

    move-result v6

    invoke-virtual {v4, v5, v6}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(II)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v1

    .line 235
    .local v1, rgWorkspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v1}, Lcom/nemustech/regina/RGWorkspace;->getUID()I

    move-result v3

    .line 237
    .local v3, wsUid:I
    iget-object v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v4

    iget-object v5, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v5}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v5

    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getHeadItemIndex()I

    move-result v6

    invoke-virtual {v4, v5, v6}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(II)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v1

    .line 239
    invoke-virtual {v1}, Lcom/nemustech/regina/RGWorkspace;->getUID()I

    move-result v0

    .line 242
    .local v0, headWsUid:I
    if-ne v3, v0, :cond_0

    .line 243
    const/high16 v4, 0x3f80

    invoke-virtual {p0, v3, v4}, Lcom/nemustech/regina/WorkspaceBrowser;->setNamePanelOpacity(IF)V

    .line 247
    :goto_0
    return-void

    .line 245
    :cond_0
    const v4, 0x3f99999a

    invoke-static {v2}, Ljava/lang/Math;->abs(F)F

    move-result v5

    sub-float/2addr v4, v5

    invoke-virtual {p0, v3, v4}, Lcom/nemustech/regina/WorkspaceBrowser;->setNamePanelOpacity(IF)V

    goto :goto_0
.end method

.method public originToFlickingZone()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 278
    const/4 v0, -0x1

    invoke-direct {p0, v1, v1, v0}, Lcom/nemustech/regina/WorkspaceBrowser;->setBackgroundQuality(ZZI)V

    .line 279
    const/4 v0, 0x1

    iput v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mZone:I

    .line 280
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickZoneFallbackListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/WorkspaceBrowser;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 281
    const-wide/16 v0, 0x96

    invoke-direct {p0, v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->animateToFlickingPosition(J)V

    .line 282
    return-void
.end method

.method public removeWorkspaceThumb(II)V
    .locals 3
    .parameter "index"
    .parameter "uid"

    .prologue
    .line 224
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/WorkspaceBrowser;->getHolderInSlot(I)Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 225
    .local v0, thumbHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->detachFrom(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 226
    iget-object v1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanelMap:Ljava/util/HashMap;

    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 227
    return-void
.end method

.method public reserveFlick(I)V
    .locals 3
    .parameter "direction"

    .prologue
    .line 473
    const-string v0, "WorkspaceBrowser"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Reserve flick direction :"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 474
    iput p1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mFlickDirection:I

    .line 475
    return-void
.end method

.method public setEnvironment(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/regina/RGWorkspaceHolder;Lcom/nemustech/regina/ElementLocator;Landroid/view/ViewGroup;)V
    .locals 3
    .parameter "reginaLauncher"
    .parameter "workspaceHolder"
    .parameter "elementLocator"
    .parameter "workspaceViewGroup"

    .prologue
    const/4 v2, 0x0

    const/high16 v1, -0x4080

    .line 132
    iput-object p1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    .line 133
    iput-object p2, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

    .line 134
    iput-object p3, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    .line 136
    const-string v0, "RGWorkspaceBrowser"

    iput-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mDescription:Ljava/lang/String;

    .line 137
    invoke-virtual {p0, v2}, Lcom/nemustech/regina/WorkspaceBrowser;->setVisibility(Z)V

    .line 138
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/WorkspaceBrowser;->attachTo(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 140
    iput v1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceWidth:F

    .line 141
    iput v1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceHeight:F

    .line 142
    const/high16 v0, 0x3f80

    iput v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanel3DWidth:F

    .line 143
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget-object v1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v1}, Lcom/nemustech/regina/RUtils;->getScreenHeightAvailable(Landroid/content/Context;)I

    move-result v1

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v0

    const/high16 v1, 0x40a0

    div-float/2addr v0, v1

    iput v0, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanel3DHeight:F

    .line 145
    invoke-virtual {p0, v2}, Lcom/nemustech/regina/WorkspaceBrowser;->setNamePanelVisibility(Z)V

    .line 146
    return-void
.end method

.method public setNamePanelOpacity(IF)V
    .locals 3
    .parameter "uid"
    .parameter "opacity"

    .prologue
    .line 408
    iget-object v1, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanelMap:Ljava/util/HashMap;

    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFPanel;

    .line 410
    .local v0, namePanel:Lcom/nemustech/tiffany/world/TFPanel;
    if-eqz v0, :cond_0

    .line 411
    invoke-virtual {v0, p2}, Lcom/nemustech/tiffany/world/TFPanel;->setOpacity(F)V

    .line 413
    :cond_0
    return-void
.end method

.method public setNamePanelVisibility(Z)V
    .locals 7
    .parameter "visibility"

    .prologue
    const/4 v6, 0x0

    const/4 v5, 0x0

    .line 391
    const/4 v1, 0x0

    .line 392
    .local v1, namePanel:Lcom/nemustech/tiffany/world/TFPanel;
    new-instance v2, Ljava/util/ArrayList;

    iget-object v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mNamePanelMap:Ljava/util/HashMap;

    invoke-virtual {v4}, Ljava/util/HashMap;->values()Ljava/util/Collection;

    move-result-object v4

    invoke-direct {v2, v4}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 393
    .local v2, namePanelList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/tiffany/world/TFPanel;>;"
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v3

    .line 394
    .local v3, thumbSize:I
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    if-ge v0, v3, :cond_2

    .line 395
    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    .end local v1           #namePanel:Lcom/nemustech/tiffany/world/TFPanel;
    check-cast v1, Lcom/nemustech/tiffany/world/TFPanel;

    .line 396
    .restart local v1       #namePanel:Lcom/nemustech/tiffany/world/TFPanel;
    iget-object v4, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaPreference;->getBrowserName()Z

    move-result v4

    if-eqz v4, :cond_1

    .line 397
    invoke-virtual {v1, p1}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 398
    if-eqz p1, :cond_0

    .line 399
    invoke-virtual {v1, v5, v6, v6}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 394
    :cond_0
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 402
    :cond_1
    invoke-virtual {v1}, Lcom/nemustech/tiffany/world/TFPanel;->isVisible()Z

    move-result v4

    if-eqz v4, :cond_0

    invoke-virtual {v1, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    goto :goto_1

    .line 405
    :cond_2
    return-void
.end method

.method public setReflectingFloor(Z)V
    .locals 0
    .parameter "set"

    .prologue
    .line 600
    sput-boolean p1, Lcom/nemustech/regina/WorkspaceBrowser;->mAddReflectingFloor:Z

    .line 601
    return-void
.end method

.method public show(I)V
    .locals 8
    .parameter "workspaceIdx"

    .prologue
    const/4 v7, 0x1

    const/4 v6, 0x0

    const/4 v5, 0x0

    .line 571
    const-string v2, "WorkspaceBrowser"

    const-string v3, "show rgworkspace browser"

    invoke-static {v2, v3, v6}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 573
    const-string v2, "WorkspaceBrowser"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Workspace browser workspaceIndex set to: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v7}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 574
    invoke-virtual {p0, p1, v6}, Lcom/nemustech/regina/WorkspaceBrowser;->setHeadItemIndex(IZ)V

    .line 575
    invoke-virtual {p0, v5}, Lcom/nemustech/regina/WorkspaceBrowser;->setDeviation(F)Z

    .line 576
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->requestLayout()V

    .line 581
    invoke-virtual {p0, v5, v5, v5}, Lcom/nemustech/regina/WorkspaceBrowser;->locate(FFF)V

    .line 582
    invoke-virtual {p0, v5, v5}, Lcom/nemustech/regina/WorkspaceBrowser;->look(FF)V

    .line 583
    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/nemustech/regina/WorkspaceBrowser;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 584
    invoke-virtual {p0, v7}, Lcom/nemustech/regina/WorkspaceBrowser;->setVisibility(Z)V

    .line 585
    iget-object v2, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v2, v6}, Lcom/nemustech/regina/ReginaLauncher;->setForegroundVisibility(Z)V

    .line 586
    iget-object v2, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    const/4 v3, 0x5

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ReginaLauncher;->setViewMode(I)V

    .line 587
    iget-object v2, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

    invoke-virtual {v2, p1}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlotByItemIndex(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/RGWorkspace;

    .line 588
    .local v0, workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspace;->getWorkspaceView()Lcom/nemustech/regina/WorkspaceView;

    move-result-object v1

    .line 589
    .local v1, workspaceView:Lcom/nemustech/regina/WorkspaceView;
    if-eqz v1, :cond_0

    invoke-virtual {v1, v6}, Lcom/nemustech/regina/WorkspaceView;->dispatchDisplayVisibility(Z)V

    .line 590
    :cond_0
    iget-object v2, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceHolder:Lcom/nemustech/regina/RGWorkspaceHolder;

    invoke-virtual {v2}, Lcom/nemustech/regina/RGWorkspaceHolder;->lock()V

    .line 592
    sget-boolean v2, Lcom/nemustech/regina/WorkspaceBrowser;->mAddReflectingFloor:Z

    if-eqz v2, :cond_1

    .line 593
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v2

    iget v3, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mWorkspaceHeight:F

    neg-float v3, v3

    const/high16 v4, 0x4000

    div-float/2addr v3, v4

    const v4, 0x3dcccccd

    sub-float/2addr v3, v4

    const v4, 0x3f19999a

    invoke-virtual {v2, v3, v4}, Lcom/nemustech/tiffany/world/TFWorld;->addReflectingFloor(FF)V

    .line 596
    :cond_1
    invoke-virtual {p0}, Lcom/nemustech/regina/WorkspaceBrowser;->unlock()V

    .line 597
    return-void
.end method

.method public updateThumbs(I)V
    .locals 4
    .parameter "workspaceIdx"

    .prologue
    .line 604
    iget-object v3, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v3}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCount()I

    move-result v1

    .line 605
    .local v1, size:I
    const/4 v0, 0x0

    .local v0, index:I
    :goto_0
    if-ge v0, v1, :cond_2

    .line 606
    iget-object v3, p0, Lcom/nemustech/regina/WorkspaceBrowser;->mElementLocator:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v3, v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v2

    .line 608
    .local v2, workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v2}, Lcom/nemustech/regina/RGWorkspace;->getItemIndex()I

    move-result v3

    if-eq v3, p1, :cond_0

    invoke-virtual {v2}, Lcom/nemustech/regina/RGWorkspace;->isRequestedUpdate()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 609
    :cond_0
    const/high16 v3, 0x3f00

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/RGWorkspace;->updateThumb(F)V

    .line 605
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 612
    .end local v2           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_2
    return-void
.end method
